<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--{include file='comm/header.tpl'}-->
    <title>前端模板列表</title>
</head>
<body>

<div class="container">
    <div class="comm_right">
        <div class="comm_content">
            <ul class="nav nav-tabs index-nav">
                <li class="active"><a href="javascript: void(0);">PC首页</a></li>
                <li><a href="javascript: void(0);">WAP首页</a></li>
                <li><a href="javascript: void(0);">WAP新品推荐</a></li>
            </ul>

            <div class="index-city" style="margin-top: 5px;">
                <!--{foreach from=$city_array item=city}-->
                    <button type="button" class="btn btn-default" page="index" cityid="<!--{$city.id}-->"><!--{$city.name}--></button>&nbsp;&nbsp;
                <!--{/foreach}-->
            </div>

            <div class="index-city" style="margin-top: 5px;display: none;">
                <!--{foreach from=$city_array item=city}-->
                    <button type="button" class="btn btn-default" page="wap_index" cityid="<!--{$city.id}-->"><!--{$city.name}--></button>&nbsp;&nbsp;
                <!--{/foreach}-->
            </div>

            <div class="index-city" style="margin-top: 5px;display: none;">
                <!--{foreach from=$city_array item=city}-->
                <button type="button" class="btn btn-default" page="wap_new_product" cityid="<!--{$city.id}-->"><!--{$city.name}--></button>&nbsp;&nbsp;
                <!--{/foreach}-->
            </div>

        </div>

</div>

</div>

<script type="text/javascript">

    $(function() {

        $('.index-nav').find('li').click(function() {
            var index = $(this).index();
            $('.index-nav').find('li').removeClass('active').eq(index).addClass('active');
            $('.index-city').hide().eq(index).show();
        });

        $('.comm_right button').click(function() {
            var page = $(this).attr('page');
            var cityid = $(this).attr('cityid');
            window.open('/quanliadmin/app/content/source.pscript?operFlg=2&page=' + page + '&cityid=' + cityid);
        });

    });


</script>

</body>
</html>